package com.zlp.stack;

import java.util.Random;

/**
 * 栈帧演示
 */
public class StackDemo1 {
    public static void main(String[] args)  {
        System.out.println("app start.............");
        String str = "my app test.......";
        while (true){
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            str += str + new Random().nextInt(77777);
            str.intern();
        }
    }

    private static void method1() {
        method2();
    }

    private static int  method2() {
        int a = 2, b = 2;
        int c = a + b;
        return c;
    }
}
